package com.tedu.bill.demo7.demo6;

/**
 * Author：毕龙
 * Date: 2024/5/25 15:38
 */
public class Test123 {
    public static void main(String[] args) {
       /* MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();
        t1.setName("线程1");
        t1.start();
        t2.start();*/


        MyThread1 t3 = new MyThread1();
        MyThread1 t4 = new MyThread1();
        MyThread1 t5 = new MyThread1();
        t3.setName("线程1");
        t4.setName("线程2");
        t5.setName("线程3");
        t3.start();
        t4.start();
        t5.start();
    }
}
